import { UploadItem } from '@arco-design/web-react/es/Upload';

export interface FormValues {
  merchantName?: string;
  managerWxCode?: UploadItem[];
  tradeMarkAuthorization?: UploadItem[];
  businessLicense?: UploadItem[];
  companyName?: string;
  socialCreditCode?: string;
  legalPersonIdCardFront?: UploadItem[];
  legalPersonIdCardBack?: UploadItem[];
  legalPersonName?: string;
  legalPersonIdCard?: string;
  legalPersonIdCardExpireTimeStr?: string;
  legalPersonIdCardNotExpire?: boolean;
  legalPersonEmail?: string;
  accountType?: 'company' | 'person';
  bankName?: string;
  bankBranchName?: string;
  bankCity?: { province?: string; city?: string; area?: string };
  bankAccount?: string;
  bankLicense?: UploadItem[];
}

export interface ApiValues {
  merchantName?: string;
  managerWxCode?: string;
  tradeMarkAuthorization?: string;
  businessLicense?: string;
  companyName?: string;
  socialCreditCode?: string;
  legalPersonIdCardFront?: string;
  legalPersonIdCardBack?: string;
  legalPersonName?: string;
  legalPersonIdCard?: string;
  legalPersonIdCardExpireTimeStr?: string;
  legalPersonIdCardNotExpire?: number;
  legalPersonEmail?: string;
  accountType?: 'company' | 'person';
  bankName?: string;
  bankBranchName?: string;
  bankCity?: string;
  bankAccount?: string;
  bankLicense?: string;
}
